var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var clean=require('gulp-clean')

gulp.task('copy', function () {
	return gulp.src(['../ipt.js/js/ipt.js'])
		.pipe(uglify())
		.pipe(rename({
			suffix: '.min'
		}))
		.pipe(gulp.dest('spec'))
})
gulp.task('default', ['copy'], function () {
	gulp.src(['./spec/ipt.min.js','spec/d-test.js'])
		.pipe(concat('diqye-test.js'))
		.pipe(gulp.dest('spec'))
});
